package cn.dgiot.fd.dao;

import java.util.List;

import cn.dgiot.fd.model.DeviceStateModel;
import org.apache.ibatis.annotations.Mapper;

/**
 * [设备状态]
 * @author
 *
 */
@Mapper
public interface IDeviceStateDAO {
	/**
	 * [查询设备状态]
	 * @param deviceStateModel
	 * @return
	 */
	DeviceStateModel getDeviceState(DeviceStateModel deviceStateModel);
	
	/**
	 * [查询需要更新的设备列表]
	 * @param deviceStateModel
	 * @return
	 */
	List<DeviceStateModel>getUpdateDeviceList(DeviceStateModel deviceStateModel);
	/**
	 * [保存设备状态]
	 * @param deviceStateModel
	 */
	void insertDeviceState(DeviceStateModel deviceStateModel);
	
	/**
	 * [批量保存设备状态]
	 * @param deviceStateModel
	 */
	void batchInsertDeviceState(DeviceStateModel deviceStateModel);
	
	/**
	 * [修改设备状态]
	 * @param deviceStateModel
	 */
	void updateDeviceState(DeviceStateModel deviceStateModel);
	
	/**
	 * [删除设备状态]
	 * @param deviceStateModel
	 */
	void deleteDeviceState(DeviceStateModel deviceStateModel);
	
}
